aboutsummaryrefslogtreecommitdiff
path: root/pages/en/manga/read/[...params].js
diff options
context:
space:
mode:
authorFactiven <[email protected]>2023-09-13 00:45:53 +0700
committerGitHub <[email protected]>2023-09-13 00:45:53 +0700
commit7327a69b55a20b99b14ee0803d6cf5f8b88c45ef (patch)
treecbcca777593a8cc4b0282e7d85a6fc51ba517e25 /pages/en/manga/read/[...params].js
parentUpdate issue templates (diff)
downloadmoopa-7327a69b55a20b99b14ee0803d6cf5f8b88c45ef.tar.xz
moopa-7327a69b55a20b99b14ee0803d6cf5f8b88c45ef.zip
Update v4 - Merge pre-push to main (#71)
* Create build-test.yml * initial v4 commit * update: github workflow * update: push on branch * Update .github/ISSUE_TEMPLATE/bug_report.md * configuring next.config.js file
Diffstat (limited to 'pages/en/manga/read/[...params].js')
-rw-r--r--pages/en/manga/read/[...params].js9
1 files changed, 6 insertions, 3 deletions
diff --git a/pages/en/manga/read/[...params].js b/pages/en/manga/read/[...params].js
index 301b646..faebcd6 100644
--- a/pages/en/manga/read/[...params].js
+++ b/pages/en/manga/read/[...params].js
@@ -1,4 +1,3 @@
-import dotenv from "dotenv";
import { useEffect, useRef, useState } from "react";
import { LeftBar } from "../../../../components/manga/leftBar";
import { useRouter } from "next/router";
@@ -115,6 +114,12 @@ export default function Read({ data, currentId, sessions }) {
}`
: "Getting Info..."}
</title>
+ <meta
+ name="title"
+ data-title-romaji={info?.title?.romaji}
+ data-title-english={info?.title?.english}
+ data-title-native={info?.title?.native}
+ />
<meta id="CoverImage" data-manga-cover={info?.coverImage} />
</Head>
<div className="w-screen flex justify-evenly relative">
@@ -226,8 +231,6 @@ export default function Read({ data, currentId, sessions }) {
}
export async function getServerSideProps(context) {
- dotenv.config();
-
const cookies = nookies.get(context);
const key = process.env.API_KEY;